var pomelo = require('pomelo');
var clientDao = module.exports;
clientDao.createClient= function( playerId ,imei,imsi,mac,gameId,gameVer,os,cb){
   var sql = 'insert into client(playerId,imei,imsi,mac,gameId,gameVer,os) values(?,?,?,?,?,?,?)';
   var args =[playerId,imei,imsi,mac,gameId,gameVer,os];
   var dbclient = pomelo.app.get('dbclient');
   dbclient.insert(sql,args,function(err,res){
       if(err){
           console.log('client insert fail!');
           console.log(err);
       }else{
           console.log('client insert ok');
           cb(null,res);
       }
   });

};